#include <stdio.h>
#include <time.h>
#include <unistd.h>

int main() 
{
    while (1)
    {
        sleep(1);
        time_t T_1;
        struct tm *TTT;
        char DIFF[128];
        time(&T_1);
        TTT = localtime(&T_1);
        strftime(DIFF, sizeof(DIFF), "%Y-%m-%d %H:%M:%S", TTT);
        printf("%s\n", DIFF);
    }
    return 0;
}